﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

using PermDoc.DB;

namespace PermDoc.Ctrl.Docs
{
    public class ShopTopic
    {
        #region Members
        public Guid Id { get; set; }
        public string Name { get; set; }
        #endregion
        #region Constructors
        public ShopTopic()
        {
        }
        public ShopTopic(string title, Guid parID)
            : this()
        {
            Id = parID;
            Name = title;
        }
        public ShopTopic(ShopTopic src)
            : this()
        {
            this.Copy(src);
        }
        public ShopTopic(DocItem src)
            : this()
        {
            this.Copy(src);
        }
        public ShopTopic(Shop src)
            : this()
        {
            this.Copy(src);
        }
        #endregion
        #region Methods
        public void Copy(ShopTopic src)
        {
            Id = src.Id;
            Name = src.Name;
        }
        public void Copy(DocItem src)
        {
            Id = src.Shop.Id;
            Name = src.Shop.Name;
        }
        public void Copy(Shop src)
        {
            Id = src.Id;
            Name = src.Name;
        }
        #endregion
    }
}
